package cn.zwx.activiti.example.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * @description:
 * @projectName:activiti-example
 * @see:cn.zwx.activiti.example.controller
 * @author:zhangwenxue
 * @createTime:2021/5/29 20:40
 * @version:1.0
 */
public class BaseController {

    private Logger logger = LoggerFactory.getLogger(BaseController.class);

    @Autowired
    private HttpServletRequest request;

    protected String getUserName(){
       return request.getHeader("userName");
    }


}
